
n = int(input())
a = list(map(int, input().split()))


for i in range(n-1):
    now = a[i]
    for j in range(i+1, n):
        if a[j] < now:
            now, a[j] = a[j], now
    a[i] = now



print(*a)



